@extends('admin_system/public/layout')
@section('content')
    <div class="col-xs-12">
        <p class="float-left"><strong>当前位置：</strong>666>>管理员编辑、添加</p>

        {{--返回按钮--}}
        <button type="button" class="btn btn-default float-right back" aria-label="Left Align">
            <span class="glyphicon glyphicon-arrow-left back" aria-hidden="true"></span>
            <span>返回</span>
        </button>
    </div>

    <div class="col-xs-12"></div>

    <div class="content-box col-xs-12 mt20 pb20 pt20">
        <form class="col-xs-4" action="{{asset('/admin_system/666active/enter?fun=edit_manager_action')}}" method="post">
            <input type="hidden" name="managerId" value="{{$manager->id}}">
            {{ csrf_field() }}

            
            <div class="form-group">
                <label>管理员类型</label>
                <select name="manager_type" class="form-control">
                    <option value="0" selected>管理员</option>
                    <option value="1">项目发起人</option>
                </select>
            </div>


            <div class="form-group">
                <label>项目发起人</label>
                <select name="parent_manager" class="form-control">
                    @foreach($managers as $manager)
                        <option value="0">项目发起人</option>
                    @endforeach
                </select>
            </div>

            <div class="form-group">
                <label>管理员名称</label>
                <input name="real_name" class="form-control" value="{{$manager->real_name}}" required>
            </div>

            <div class="form-group">
                <label>手机号码</label>
                <input name="mobile" class="form-control" value="{{$manager->mobile}}" required>
            </div>
            <div class="form-group">
                <label>银行名称</label>
                <input name="bank_name" class="form-control" value="{{$manager->bank_name}}" required>
            </div>
            <div class="form-group">
                <label>银行卡号</label>
                <input name="bank_code" class="form-control" value="{{$manager->bank_code}}">
            </div>

            <button type="submit" class="btn btn-primary">提交</button>
        </form>
    </div>


@endsection
